#include<iostream>
#include <fstream>
#include<vector>
#include<math.h>
#include<string>
#include <QDateTime>
#include<qDebug>

#define DATABOUND 381
#define DAYBOUND 24
#define TRUE 1

#define PI 3.1415926


using namespace std;

class RadarDataReader
{
public:

    //enum classify{TYPE_NOISE, TYPE_NOMAL, TYPE_FEATURE, TYPE_UNUSE};

    struct RadarDataFrm
    {
        QDateTime time;
        std::vector<int> vec_dis;
        int line;
    };
    bool load(std::string file);

    bool getDataOneLine(
            std::string& str_one_line,
            std::vector<RadarDataFrm> & vec_frm
            );

    int CharToInt(string &s , int &locat);
    bool SaveData();

    bool To3DLocation();
    //bool FindPointEnum();

    //bool save(std::string file);

private:
    std::string file;
    std::vector<double> vec_ange;
    std::vector<RadarDataFrm> vec_frm;

    QDateTime begintime;

};





